
using System;
using System.Configuration;

namespace OF.Security.Utils
{
	public class TypeConfigurationElement : NamedConfigurationElement
	{
		[ConfigurationProperty("type", IsRequired = true)]
		public virtual string Type
		{
			get
			{
				return (string)base["type"];
			}
		}

		public object CreateInstance(params object[] ctorParams)
		{
			return TypeCreator.CreateInstance(this.Type, ctorParams);
		}
	}
}
